import Vue from 'vue'
import Router from 'vue-router'
import home from '@/pages/home'
import company from '@/pages/company'
import app from '@/pages/app'
import information from '@/pages/information'
import set from '@/pages/set'
import orderList from '@/pages/orderList'
import jobDetail from '@/pages/jobDetail'
import Login from '@/pages/login'
import OrderGoods from '@/pages/orderGoods'
import LineItem from '@/pages/LineItem'
import Download from '@/pages/download'
import Authentication from '@/pages/Authentication'
import AuthenticationUpload from '@/pages/AuthenticationUpload'
import UploadResult from '@/pages/UploadResult'
import success from '@/pages/success'

Vue.use(Router)

export default new Router({
 /* mode:"history",
  scrollBehavior (to, from, savedPosition) {
    return {y:0}
  },*/
  routes: [
    { path: '/',name: 'home',component: home },
    { path: '/company',name: 'company',component: company },
    { path: '/app',name: 'app',component: app },
    { path: '/information',name: 'information',component: information },
    { path: '/set',name: 'set',component: set },
    { path: '/orderList',name: 'orderList',component: orderList },
    { path: '/jobDetail',name: 'jobDetail',component: jobDetail },
    { path: '/Login', name: 'Login', component: Login},
    { path: '/OrderGoods', name:'OrderGoods', component:OrderGoods},
    { path: '/LineItem', name:'LineItem', component:LineItem},
    { path: '/Authentication', name:'Authentication', component:Authentication},
    { path: '/AuthenticationUpload', name:'AuthenticationUpload', component:AuthenticationUpload},
    { path: '/UploadResult', name:'UploadResult', component:UploadResult},
    { path: '/Download', name:'Download', component:Download},
    { path: '/success', name:'success', component:success}
  ]
})
